package com.zzz.service.impl;

import com.aaa.entity.GBrand;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzz.service.GBrandService;
import com.zzz.mapper.GBrandMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86176
* @description 针对表【g_brand(品牌)】的数据库操作Service实现
* @createDate 2023-03-16 20:04:03
*/
@Service
public class GBrandServiceImpl extends ServiceImpl<GBrandMapper, GBrand>
    implements GBrandService{

    @Autowired
    private GBrandMapper gBrandMapper;

    @Override
    public Result addBrand(GBrand brand) {
        brand.setStatus(2);
        brand.setIsDeleted(0);
        int insert = gBrandMapper.insert(brand);
        return new Result(2000,"添加成功",insert);
    }
}




